From: Florian Eckert Date: Fri, 7 Jun 2024 07:37:11 +0000 (+0200) Subject: luci-base: replace button tag with div tag in ui.js X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=4440b00b2b732923bb1092082980856e35bb4f5e;p=project%2Fluci.git luci-base: replace button tag with div tag in ui.js Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 99bfb8052f..4170ac366f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4482,7 +4482,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { E('var', {}, E('del', ' ')), ' ', _('Option removed') ])]), E('br'), list, E('div', { 'class': 'right' }, [ - E('button', { + E('div', { 'class': 'btn cbi-button', 'click': UI.prototype.hideModal }, [ _('Close') ]), ' ', @@ -4496,7 +4496,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { }, click: L.bind(function(ev, mode) { this.apply(mode == '0') }, this) }).render(), ' ', - E('button', { + E('div', { 'class': 'btn cbi-button cbi-button-reset', 'click': L.bind(this.revert, this) }, [ _('Revert') ])])])